package com.fjsh.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fjsh.entity.ActCustom;
import com.fjsh.mapper.ActivitiMapper;
import com.fjsh.service.ActivitiService;
import com.fjsh.service.convert.ActCustomConvert;
import com.fjsh.vo.ActCustomVO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class ActivitiServiceImpl extends ServiceImpl<ActivitiMapper, ActCustom> implements ActivitiService {

    @Resource
    private ActivitiMapper activitiMapper;

    @Override
    public List<ActCustomVO> getActCustomList() {
        LambdaQueryWrapper<ActCustom> wrapper = new LambdaQueryWrapper<>();
        List<ActCustom> actCustomList = activitiMapper.selectList(wrapper);
        return ActCustomConvert.INSTANCE.actCustomListToActCustomVOList(actCustomList);
    }
}
